<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="jquery-1.6.2.min.js"></script>
        <script type="text/javascript" src="validate.js">
            
        </script>
        <script type="text/javascript">
            function valid(){
               // var value=document.getElementById("test").value;
			   
               var rs= validate([{name:"test",type:'integer'},{name:"num",type:'array'}]);			  
			   return rs;
            }
        </script>
    </head>
    <body>
        <form onsubmit="return valid();" method="post" action="index.html">
        <input type="text" id="test" name="test" />
        <input type="submit" value="Submit"  />
        <br/>
        <input type="checkbox" name="num" value="1"/>
        <input type="checkbox" name="num" value="2"/>
        <input type="checkbox" name="num" value="3"/>
        <input type="checkbox" name="num" value="4"/>
        </form>
    </body>
</html>
